package model;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;


public class DissolvingPlatform extends Platform implements Item {

	private boolean visible = true;

	public DissolvingPlatform(double cX, double cY) throws SlickException {
		super(cX, cY);
		image = new Image("data/schwarz.png");
	}

	public Type getType() {
		return Type.VERSCHWINDENNACHEINMALDRAUFSPRINGEN;
	}

	public boolean getVisible() {
		return visible;
	}

	public void setVisible(boolean pVisible) {
		visible = pVisible;
	}

	public void act() {
		
		if (!visible)
		{
			return;
		}
		
		if (misterJumpsOn())
		{
			Wrapper.getInstance().setMisterYGeschwindigkeit(.02);
			visible = false;
			image.setAlpha(0);
		}


	}

}
